<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/nw.min.css" />
<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/article.css" />
<style>
	.nav .curr dd {
	    display: block;
	}
	#container{
		width: 1090px;
	}
	.profile .content{
		width: 880px;
	}
	.nch-breadcrumb-layout{
		display: none;
	}
</style>
<?php if(get_template_type() == 'index'){?>
<div id="container">
<div class="profile">
	<div class="nav">
	<?php
        $first = Model()->table('article_class')->select();
        foreach($first as $f){
      ?>
      <h2>
		<b></b>
		<a href="#"><?php echo $f['ac_name']?></a>
	  </h2>
	  <dl class="curr">
		<dt><b></b><?php echo $f['ac_name']?></dt>
		<dd id="dd_ie_fix">
		<?php

          $list = Model()->table('article')->where(array('ac_id' => $f['ac_id']))->order('article_sort')->select();
          foreach($list as $k => $ar){
        ?>
			<a href="<?php echo urlShop('article', 'article', array('ac_id'=>$ar['article_id']));?>"><?php echo $ar['article_title']?></a>
			<?php }?>
		</dd>
	  </dl>
      <!-- <dl>
        <dt><?php echo $f['ac_name']?></dt>
        <?php

          $list = Model()->table('article')->where(array('ac_id' => $f['ac_id']))->order('article_sort')->select();
          foreach($list as $k => $ar){
        ?>
        <dd style="<?php if($k == 0){ echo 'border-top:0;';} ?>" <?php if($_GET['ac_id'] === $ar['article_id']){ echo 'class="selected"';}?>>
          <a href="<?php echo urlShop('article', 'article', array('ac_id'=>$ar['article_id']));?>"><?php echo $ar['article_title']?></a>
        </dd>
        <?php    
          }
        ?>
      </dl> -->
      <?php    
        }
      ?>

	
    </div>

<script>
	function fix_ie6(){
		$('#dd_ie_fix a').hide().show();
	}
	$(function(){
		var isIE6= /msie 6/i.test(navigator.userAgent);

		if (isIE6) {
			setTimeout(fix_ie6, 200);
		}
	})
</script>
	<input type="hidden" id="J_Page_Label" value="delivery_state">
	<div class="content">
	<?php
        $article = Model()->table('article')->find($_GET['ac_id']);
      ?>
		<h1><?php echo $article['article_title'];?></h1>
		<div class="sector">    
			<?php
		        echo $article['article_content'];
		      ?>
		</div>
	</div>
<iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></div>
</div>
<?php }?>